package com.koron.order.overhaul.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.order.overhaul.utils.DeleteFlag;
import com.koron.order.overhaul.utils.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (OverhaulOrderMajorBean) 大修工单专业分类从表
 * @author twcao
 * @since 2021-09-29 09:49:30
 */
@Data
@ApiModel("大修工单专业分类从表")
public class OverhaulOrderMajorBean implements Serializable, DeleteFlag, Sortable {

    private static final long serialVersionUID = -32594720945571467L;

    @ApiModelProperty(value = "ID,32位随机数，主键")
    private String id;

    @ApiModelProperty(value = "工单ID")
    private String overhaulId;

    @ApiModelProperty(value = "专业ID")
    private String major;

    @ApiModelProperty(value = "专业名称")
    private String majorName;

    @ApiModelProperty(value = "工单排序")
    private Integer sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标志,0：delete_flag=false，代表未删除1：delete_flag = true，代表已删除", hidden = true)
    private Boolean deleteFlag;
}
